<?php
/**
 * Created by PhpStorm.
 * User: xiaojuntao
 * Date: 2018-05-31
 * Time: 20:51
 */

function get_user_info($uid, $key = '')
{
    $user = model('user/User')->getUserInfo($uid);
    return $key ? $user[$key] : $user;

}